package com.gxy.learn.backup.mapper.second;


import com.gxy.learn.backup.entity.second.ConsumptionIndexReceivingDateSecond;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Mapper
public interface ConsumptionIndexReceivingDateSecondMapper {
    List<ConsumptionIndexReceivingDateSecond> findByTableNameAndReceivingUnitDate(@Param("tenantNo") String tenantNo, @Param("receivingUnitDate") Date receivingUnitDate, Integer PageSize, Integer offset);

    List<ConsumptionIndexReceivingDateSecond> findByTableNameAndReceivingUnitDateYearAndMonth(@Param("tenantNo") String tenantNo, @Param("receivingUnitDate") String receivingUnitDate, Integer PageSize, Integer offset);



    @Transactional
    void batchDel(@Param("tenantNo") String tenantNo, @Param("ids") List<Long> ids);
}
